package com.dlc.shop.bean.enums;

/**
 * 职称类型
 * @author cl
 */
public enum PositionType {

    /**
     * 店铺超级管理员
     */
    ADMIN(0),
    /**
     * 店员
     */
    STAFF(1),;

    private final Integer num;

    public Integer value() {
        return num;
    }

    PositionType(Integer num) {
        this.num = num;
    }

    public static PositionType instance(Integer value) {
        PositionType[] enums = values();
        for (PositionType typeEnum : enums) {
            if (typeEnum.value().equals(value)) {
                return typeEnum;
            }
        }
        return null;
    }


}
